<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        table.gridtable {
            width: 98%;
            font-family: verdana, arial, sans-serif;
            font-size: 11px;
            color: #333333;
            border-width: 1px;
            border-color: #666666;
            border-collapse: collapse;
        }

        table.gridtable th {
            border-width: 1px;
            padding: 8px;
            border-style: solid;
            border-color: #666666;
            background-color: #dedede;
        }

        table.gridtable td {
            border-width: 1px;
            padding: 8px;
            border-style: solid;
            border-color: #666666;
            background-color: #ffffff;
        }

        a {
            text-decoration: none;
        }
    </style>
</head>
<body>
<h3>用户列表页面</h3>
<table class="gridtable">
    <tr>
        <th style="width: 100px">用户ID</th>
        <th>用户名称</th>
        <th>用户角色</th>
        <th>操作</th>
    </tr>
    <tr th:each="r : ${adminList}">
        <td th:text="${r.id}">Onions</td>
        <td th:text="${r.name}">2.41</td>
        <td th:text="${r.name}">2.41</td>
        <td><a th:href="@{setRole(id=${r.id})}">分配角色</a></td>
    </tr>
</table>
</body>
</html>